//
//  ScrollPhotoView.h
//  NaRiLSVMT
//
//  Created by zhangmeng on 14-8-11.
//  Copyright (c) 2014年 helloyouth.org. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "HeadItem.h"
#import "TcpClient.h"
#import "DropDownListView.h"
#import "NRLSVMAllScreenViewController.h"
#import "NRLSVMForScreenViewController.h"
#import "MJCollectionViewController.h"
#import "DropDownChooseProtocol.h"
//#import "NRLSVMAllScreenViewController.h"
typedef enum : NSInteger
{
    CloseScreen = 0,
    OpenScreen
} OCScreen;

typedef enum : NSUInteger {
    EPanDirectionNormal = 0,
    EPanDirectionLeft,
    EPanDirectionRight,
} EPanDirection;
@class ScrollPhotoView;
@protocol ScrollPhotoViewDelegate <NSObject>

//- (void)didOperateObject:(ScrollPhotoView *)view Type:(int)type Head:(HeadItem *)item;
-(void)didCLickScreen:(NSString *)screenname;
-(void)panTalkinfo;
-(void)playTalkinfo;
-(void)clickpresentViewController:(UIView *)view Controller:(UIViewController *)controller;
@end

@interface ScrollPhotoView : UIView<MJCollectionViewControllerDelegate,UITextFieldDelegate>
{
    //int ng;
}
WeakWithIB UICollectionView *contentScrollView;

Strong NRLSVMAllScreenViewController *Allscreenviewcontroll;

Strong NRLSVMForScreenViewController *Forscreenviewcontroll;

Strong UIViewController *controller;
Strong UIView *showView;
Strong UIView *switchView;
Strong UIView *collView;
Strong UIPageControl *pageView;
Strong UIButton *onceplay;
Strong UIButton *arrowplay;
Strong UIButton *openClose;
Strong HeadItem *tuocloseView;
Strong HeadItem *tuoopenView;
Strong UITextField *secondNumTextf;

Strong UIButton *proBtn;
Strong UIButton *nextBtn;
Strong UILabel *timeControl;
Strong UILabel *allthumb; // 共多少个屏幕
Strong UIImageView *showImage;
Assign NSInteger ocflag;

Assign NSInteger nowScreen; //屏幕的id
Strong NSMutableArray *sourceHeads;
//Strong UIView *operateView;
Strong NSMutableArray *screenArr; //屏幕个数
Strong NSMutableArray *thumbScreen;//所有屏幕的数据
Strong MJCollectionViewController *collecView; //当前在的屏幕
Assign NSInteger curSelIdx;
Assign EPanDirection direction; //pan
Assign NSInteger clickNum; // 点击的那一个缩略图

Strong NSMutableDictionary *nowPlaydata;
Assign BOOL openroclose; //展开或者收起

Assign NSInteger noOnceplay; // 屏幕是否在单次播放

Assign NSInteger noArrowplay; // 屏幕是否在循环播放


Assign NSInteger noOpen; //屏幕是否展开

Copy NSString *playtime; // 屏幕播放的秒数

Copy NSString *screenNum;

Copy NSString *screenId;
Assign NSInteger stop;
Assign BOOL forScreen;
Strong NSMutableArray *proHostArr;
Assign BOOL talkClickflag;
Strong UIImageView *opencimageView;
Assign id<ScrollPhotoViewDelegate> delegate;
Strong DropDownListView *listView;
Strong UIButton *btnList;
Strong UIView *listProView;
Strong  UIImageView *imageList;
Strong UILabel *labList;
Strong UIView *textFiledView;
Assign NSInteger numGroup;
@property(nonatomic,assign)CGFloat initTouchPosX;


- (void)reloadHeadImageData:(id)data;
-(void)pageClick:(NSInteger)num;
-(void)fullScreenBtn:(id)sender;
-(void)closeList;
@end
